﻿using Futuret.Repositor.Base.Interface;

namespace Futuret.Repositor.Base.Entity;

/// <summary>
///     Author: Riva
///     Date: 2023/7/11 14:29
///     Description: 主键类型
/// </summary>
public class BaseKey<T> : IBaseKey<T>
{
    /// <summary>
    ///     拓展信息
    /// </summary>
    [SugarColumn(ColumnName = "ExtJson", ColumnDescription = "扩展信息", ColumnDataType = StaticConfig.CodeFirst_BigString,
        IsNullable = true)]
    public virtual string? ExtJson { get; set; }

    /// <summary>
    ///     Id
    /// </summary>
    [SugarColumn(ColumnDescription = "Id", IsPrimaryKey = true, IsIdentity = false)]
    public T? Id { get; set; } = default;
}